package net.sourceforge.peertwitter.scamp.messaging;

import rice.p2p.commonapi.NodeHandle;

public class HeartbeatMessageAck extends ScampReplyMessage {

	private static final long serialVersionUID = -6000415457301243830L;

	public HeartbeatMessageAck(HeartbeatMessage msg, NodeHandle replier, long timestamp) {
		super(msg,replier, timestamp);
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (!super.equals(obj)) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		return true;
	}

	@Override
	public String toString() {
		return "HeartbeatMessageAck [getSender()=" + getSender()
				+ ", getGroup()=" + getGroup() + "]";
	}
	
	

//	@Override
//	public short getType() {
//		return HEART_BEAT_ACK.type();
//	}

//	@Override
//	public void serialize(OutputBuffer buf) throws IOException {
//	}
	

}
